SET (TARGET_NAME wxctb)

SET (TARGET_SRC
	${Alcor_EXT_PATH}/wx/ctb-0.13/fifo.cpp
	${Alcor_EXT_PATH}/wx/ctb-0.13/getopt.cpp
	#${Alcor_EXT_PATH}/wx/ctb-0.13/gpib.cpp
	${Alcor_EXT_PATH}/wx/ctb-0.13/iobase.cpp
	${Alcor_EXT_PATH}/wx/ctb-0.13/kbhit.cpp
)

SET (TARGET_HEADER
	${Alcor_EXT_PATH}/wx/ctb-0.13/ctb.h
	${Alcor_EXT_PATH}/wx/ctb-0.13/fifo.h
	${Alcor_EXT_PATH}/wx/ctb-0.13/getopt.h
	#${Alcor_EXT_PATH}/wx/ctb-0.13/gpib.h
	${Alcor_EXT_PATH}/wx/ctb-0.13/iobase.h
	${Alcor_EXT_PATH}/wx/ctb-0.13/kbhit.h
	${Alcor_EXT_PATH}/wx/ctb-0.13/serport.h
	${Alcor_EXT_PATH}/wx/ctb-0.13/serportx.h
	${Alcor_EXT_PATH}/wx/ctb-0.13/timer.h
)

IF (WIN32) 

	SET (TARGET_SRC
		${TARGET_SRC}
		${Alcor_EXT_PATH}/wx/ctb-0.13/win32/timer.cpp
		${Alcor_EXT_PATH}/wx/ctb-0.13/win32/serport.cpp
	)

	SET (TARGET_HEADER 
		${TARGET_HEADER} 
		${Alcor_EXT_PATH}/wx/ctb-0.13/win32/serport.h
		${Alcor_EXT_PATH}/wx/ctb-0.13/win32/timer.h
	)

ENDIF (WIN32)

IF (UNIX)

	IF (APPLE) 

		SET (TARGET_SRC
			${TARGET_SRC}
			${Alcor_EXT_PATH}/wx/ctb-0.13/macos/timer.cpp
			${Alcor_EXT_PATH}/wx/ctb-0.13/macos/serport.cpp
		)

		SET (TARGET_HEADER 
			${TARGET_HEADER}
			${Alcor_EXT_PATH}/wx/ctb-0.13/macos/serport.h
			${Alcor_EXT_PATH}/wx/ctb-0.13/macos/timer.h
	        )

        ELSE (APPLE)

		SET (TARGET_SRC
			${TARGET_SRC}
			${Alcor_EXT_PATH}/wx/ctb-0.13/linux/timer.cpp
			${Alcor_EXT_PATH}/wx/ctb-0.13/linux/serport.cpp
		)
		SET (TARGET_HEADER 
			${TARGET_HEADER}
			${Alcor_EXT_PATH}/wx/ctb-0.13/linux/serport.h
			${Alcor_EXT_PATH}/wx/ctb-0.13/linux/timer.h
	        )
	
	ENDIF (APPLE)

ENDIF (UNIX)

IF (WIN32)
	SET(TARGET_EXT_LINK winmm.lib)
ENDIF (WIN32)

SETUP_LIB()
